package com.example.demo.Controller;
/**
 * @作者:邹蕴果
 * @创建时间：2021/7/19
 * @修改时间：2021/7/20
 */
import com.example.demo.EntityClass.Points;
import com.example.demo.Service.PointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("/points")
public class PointsController {
    @Autowired
    private PointService pointService;

    @RequestMapping("/getRecommend")
    public List<Points> setSCV() {
        pointService.getPoints();
        try {
            pointService.setPoints();
        } catch (Exception e) {

        }
        return pointService.getPoints();

    }
}
